package org.dromara.xyyw.domain.bo;

import org.dromara.xyyw.domain.XyywCouponAcquireRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 用户领取记录业务对象 xyyw_coupon_acquire_record
 *
 * @author yf
 * @date 2024-05-29
 */
@Data
@AutoMapper(target = XyywCouponAcquireRecord.class, reverseConvertGenerate = false)
public class XyywCouponAcquireRecordBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空", groups = {EditGroup.class})
    private Integer recordId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer userId;

    /**
     * 优惠券ID
     */
    @NotNull(message = "优惠券ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer couponId;

    /**
     * 领取时间
     */
    private Date acquireTime;

    /**
     * 是否已使用
     */
    private Integer isUsed;

    /**
     * 使用时间
     */
    private Date usedTime;

}
